//
//  Map.h
//  lyxluyou
//
//  Created by mmyy on 15/10/17.
//  Copyright (c) 2015年 mmyy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
typedef void(^MapSuccess) (NSArray *array);
typedef void(^MapFailure)(NSError *error);
@interface Map : NSObject<MKMapViewDelegate, CLLocationManagerDelegate>
-(void)searchMapWithString:(NSString *)string success:(MapSuccess)success andFail:(MapFailure)fail;
+(instancetype)shareMap;
-(void)startLocation;
-(void)reverseGeocodeLocation:(CLLocation *)location success:(MapSuccess)success andFail:(MapFailure)fail;
@property (nonatomic, assign) CLLocationCoordinate2D coor;

@end
